package indi.zhifa.study2024.class002.busy.generalTest.business.curd.bill.consign.dao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import indi.zhifa.study2024.class002.busy.generalTest.business.curd.bill.consign.entity.po.ConsignDetailSimpleEntity;
import indi.zhifa.study2024.class002.busy.generalTest.business.curd.bill.consign.dao.mapper.ConsignDetailSimpleMapper;
import indi.zhifa.study2024.class002.busy.generalTest.business.curd.bill.consign.dao.service.IConsignDetailSimpleDbService;
import indi.zhifa.study2024.core.mpenhence.entity.annotations.ZfDbService;
import indi.zhifa.study2024.core.mpenhence.service.impl.ZfDbServiceImpl;

import java.util.List;

/**
 * <p>
 * 销售单子表，没有优化 服务实现类
 * </p>
 *
 * @author 织法
 * @since 2024-09-16
 */
@ZfDbService(name="ConsignDetailSimpleEntity")
public class ConsignDetailSimpleDbServiceImpl extends ZfDbServiceImpl<ConsignDetailSimpleMapper, ConsignDetailSimpleEntity> implements IConsignDetailSimpleDbService {

    @Override
    public List<ConsignDetailSimpleEntity> listByBillId(Long pId) {
        LambdaQueryWrapper<ConsignDetailSimpleEntity> wrapper = Wrappers.<ConsignDetailSimpleEntity>lambdaQuery()
                .eq(ConsignDetailSimpleEntity::getBillId, pId);
        return list(wrapper);
    }

}
